﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>solcoo 商户数据统计</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    	<meta http-equiv="pragma" content="no-cache" />
    	<meta http-equiv="cache-control" content="no-cache" />
    	<meta http-equiv="expires" content="0" />
    	<meta http-equiv="keywords" content="keyword1, keyword2, keyword3" />
    	<meta http-equiv="description" content="solcoo 商户数据统计" />
    	<!-- css -->
    	<link type="text/css" rel="stylesheet" href="css/data.css" />
	</head>
	<body>
		<c:if test="${empty sessionScope.admin}">
			<jsp:forward page="/" />
		</c:if>
		<div id="outter">
			<div id="nav">
				<a href="data.jspDo">Solcoo 数据统计</a>&nbsp;&nbsp;
				<a href="javascript:void(0);"><span class="redTab">商户数据统计</span></a>&nbsp;&nbsp;
				<a href="shanghumxData.jspDo">商户明细统计</a>
			</div>
			<!-- 数据 -->
			<div id="data">
				<table>
					<caption>商户数据统计</caption>
					<tr>
						<th>注册手机</th>	
						<th>商户名称</th>
						<th>地址</th>
						<th>注册日期</th>
						<th>总成交量<br />(实收款)</th>
						<th>会员数量<br />(人)</th>
						<th>关注人数</th>
						<th>总交易笔数</th>
						<th>总短信发送条数</th>
						<th>会员可消费余额<br />(元)</th>			
					</tr>
					<c:forEach var="shanghuData" items="${shanghuDatas}" varStatus="shanghuDataStatus">
						<tr class="tr${(shanghuDataStatus.index+1)%2}">
							<td>${shanghuData.zhucesj}</td>
							<td>${shanghuData.shanghumc}</td>
							<td>${shanghuData.shanghudz}</td>
							<td>${shanghuData.zhucerq}</td>
							<td class="red">￥${shanghuData.zcjl}</td>
							<td>${shanghuData.hysl}</td>
							<td>${shanghuData.gzrs}</td>
							<td>${shanghuData.zjybs}</td>
							<td>${shanghuData.zdxfhts}</td>
							<td class="red">￥${shanghuData.hykxfye}</td>
						</tr>
                  	</c:forEach>
				</table>
			</div>
		</div>
	</body>
</html>